﻿@model IEnumerable<Licitar.Models.Empresa>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Registra tu empresa", "Registrar")
</p>
<table>
    <tr>
        <th>
            NombreEmpresa
        </th>
        <th>
            RazonSocial
        </th>
        <th>
            Rubro
        </th>
        <th>
            Cuit
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.NombreEmpresa)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RazonSocial)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Rubro)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Cuit)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.EmpresaID }) |
            @Html.ActionLink("Details", "Details", new { id=item.EmpresaID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.EmpresaID })
        </td>
    </tr>
}

</table>
